<%-- 
    Document   : inicio
    Created on : 20/01/2012, 01:54:46
    Author     : Carlos Roberto
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link type="text/css" href="css/layout.css" rel="stylesheet" />
        <title>Projeto WS</title>
    </head>
    <body>
        <div id="todo">
            <div id="topo"><h3><h:outputText value="Cadastro de Produtos"/></h3></div>
            <div id="corpo">
                <h:form>
                    <h:panelGrid columns="1" >
                        <h:commandButton value="Novo Produto" action="criar" style="width:29px height:21px"/>
                    </h:panelGrid>
                    <hr/>
                    <h:panelGrid columns="2" >
                        <h:outputText value="Id: "/>
                        <h:inputText id="id1" value="#{produtobean.id}"/>
                        <h:commandButton value="Consultar" action="#{produtobean.consultarProduto}" style="width:29px height:21px"/>
                    </h:panelGrid>
                    <hr/>
                    <p><h:outputText value="#{produtobean.msg}"/></p>
                </h:form>
            </div>
        </div>
    </body>    
</f:view>
